home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1987 / Oct 87 / Custom Scroll Bar 10⁄29 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.2 KB  |  31 lines  |  [TEXT/GEOL]

  1. Item    1211308                         29-Oct-87        17:55
  2.  
  3. From:   D0542                           Productive Tech, Dev, Mark Gilford
  4.  
  5. To:     MACAPP$                         MacApp Interest List
  6.  
  7. Sub:    Custom Scroll Bar Behavior
  8.  
  9. Hello,folks:
  10.  
  11. In my application I have a window with vertical and horizontal scroll bars.
  12. The view consists of a series of rectangular areas, each the size of the open
  13. window, and I want to constrain things so that only a single complete rectangle
  14. can be displayed at any one time--in other words displaying half of one
  15. rectangle and half of the one to the right of it is not allowed.
  16.  
  17. To control the scroll bar's behavior when the user clicks on the arrows or in
  18. the bar area I did an override of TFrame.ScrollStep which changes the delta
  19. value to force a scroll (really a jump) to the next rectangular area.  This
  20. works fine, but I am now trying to handle the situation when the user presses
  21. on the thumb and drags it---again I want to constrain the scrolling so that it
  22. is "chunky" and goes as a minimum to the next rectangle, as opposed to a pixel
  23. by pixel approach which is standard.
  24.  
  25. Any ideas on the best way to approach this?
  26.  
  27. In advance, many thanks.
  28.  
  29. ----Mark Gilford
  30.  
  31.